import gameScene5 from "../Game/gameScene5";

export default class GameScore extends Laya.Script {

    constructor() { super(); }
    private turnip: Laya.Sprite
    private gameScene1:gameScene5

    onEnable(): void {
     
    }

    onTriggerEnter(other: any, self: any) {
        if (other.label == "player1" || other.label == "player2") {
            this.owner.removeSelf()
            gameScene5._intance.addSum(1);
        }
    }


    onDisable(): void {
    }
}